package com.hq.door.controller;

import javax.annotation.PostConstruct;

import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hq.door.service.IUpdateDataService;


@RequestMapping("/Data")
// @Controller
public class UpdateDataController {

	@Autowired
	IUpdateDataService updateDataService;
	
	@PostConstruct
	public int updateMajorData() {
		return updateDataService.updateMajorData();
	}
	
	@PostConstruct
	public int updateClassData(){
		return updateDataService.updateClassData();
	}
	
	@PostConstruct
	public int updateStuData(){
		return updateDataService.updateStuData();
	}
}
